package com.five.second_shop.mapper;

import com.five.second_shop.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    //创建订单
    Integer insertOrder(Order order);
    //删除订单
    Integer delectOrder(String id);
    //修改订单
    Integer updateOrder(Order order);
    //查看所有订单
    Order queryOrderById(String id);
    //查看订单总数
     Integer queryOrderCount(String userid);
    //分页展示订单信息
    List<Order>queryAllOrder(@Param("page")Integer page,@Param("count")Integer count,@Param("order") Order order);
    //查询所有订单
    List<Order> LookOrder(Order order);
    //根据用户Id查询所有订单
    List<Order>queryByUserid(String userid);

}
